package com.woniuxy.intellihome.mapper;

import com.woniuxy.intellihome.entity.Orderitem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-08-11
 */
public interface OrderitemMapper extends BaseMapper<Orderitem> {

    //根据order_id 查询 订单明细
    @Select("select * from m_orderitem where order_id=#{order_id}")
    List<Orderitem> getByOrderId(int orderId);
}
